//
//  MHComicPictureCell.m
//  ManHua
//
//  Created by 赵永泉 on 15/10/27.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHComicPictureCell.h"
#import <UIImageView+WebCache.h>

@interface MHComicPictureCell ()
@property (nonatomic, strong) UIImageView *picture;

@end

@implementation MHComicPictureCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = [UIColor blackColor];
        self.picture = [[UIImageView alloc]initWithFrame:CGRectMake(0, 5, Height - 20, 297.0 / 210.0 * Height)];
        [self.contentView addSubview:self.picture];
    }
    return self;
}

- (void)setPicturURL:(NSString *)picturURL
{
    _picturURL = picturURL;
    [self.picture sd_setImageWithURL:[NSURL URLWithString:picturURL]];
}

@end
